<template>
	<view class="carddetail-container">
		<u-text :text="card.rechargeMode" align="left" ></u-text>
		<u-text :text="card.rechargeAmount" align="left" ></u-text>
		<u-text :text="card.orderTime" align="left" ></u-text>
		<u-text :text="card.orderNumber" align="left" ></u-text>
		<u-text :text="card.userId" align="left" ></u-text>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				orderNumber:'',
				card:{}
			}
		},
		onLoad(option) {
			this.orderNumber=option.orderNumber
			this.getDetail()
		},
		methods: {
		getDetail() {
			uni.request({
				url: 'https://www.gzzyue.com/prod-api/system/rechargeTable/list?orderNumber'+this.orderNumber, //获取个人信息。
				method: 'GET',
				header: {
					'Authorization': uni.getStorageSync("token") //自定义请求头信息
				},
				success: (res) => {
					console.log('res:', res);
					if (res.statusCode == 200) {
						if (res.data.code == 200) {
							this.card = res.data.rows[0]
								// uni.$u.toast(res.data.msg)
		
						} else if (res.data.code == 500) {
							uni.$u.toast(res.data.msg)
						} else {
							uni.$u.toast('系统服务异常，请联系管理员！')
						}
					} else {
						uni.$u.toast('系统服务异常，请联系管理员！')
					}
				},
				fail: (errors) => {
					console.log('errors:', errors);
					uni.$u.toast('服务器错误，请联系管理员！')
				},
			});
		
		},	
		}
	}
</script>

<style lang="scss" scoped>

</style>
